package com.ilesson.ppim;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by【仿脑科技】
 *
 * @Author: potato
 * @CreateDate: 2024/3/6 16:33
 */
public class PPFriend implements Parcelable {
    private String phone;
    private String name;
    private String icon;
    protected PPFriend(Parcel in) {
        phone = in.readString();
        name = in.readString();
        icon = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(phone);
        dest.writeString(name);
        dest.writeString(icon);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PPFriend> CREATOR = new Creator<PPFriend>() {
        @Override
        public PPFriend createFromParcel(Parcel in) {
            return new PPFriend(in);
        }

        @Override
        public PPFriend[] newArray(int size) {
            return new PPFriend[size];
        }
    };

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    public String toString() {
        return "PPFriend{" +
                "phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", icon='" + icon + '\'' +
                '}';
    }
}
